﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RestSharp;
using Ymatou.ServiceCenter;

namespace WebApiDemo.Contract
{
    //[Resource("webapi.ymatou.com", "api/Default/TestGet", Method.GET, ParameterBuildType.UrlQueryString)]
    public class TestGetRequest:IResource
    {
        public string Id { get; set; }

        public string Name { get; set; }

        public int Age { get; set; }

        public decimal Price { get; set; }

        public ResourceAttribute GetResourceAttribute()
        {
            return new ResourceAttribute("webapi1.ymatou.com", "api/Default/TestGet", Method.GET, ParameterBuildType.UrlQueryString);
        }
    }

    public class TestGetResponse
    {
        public string Id { get; set; }

        public string Data { get; set; }
    }
}
